package com.bo.baby2.service.impl;

import com.bo.baby2.dao.TSystemDictionaryItemMapper;
import com.bo.baby2.entity.LogingLogGet;
import com.bo.baby2.entity.TSystemDictionaryItem;
import com.bo.baby2.service.SystemDictionryItemService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @program: baby2_p2p
 * @description: 数据库取值字典实现层
 * @author:波
 * @create: 2020-07-14 14:23
 **/
@Service
public class SystemDictionryItemServiceImpl implements SystemDictionryItemService {
    @Resource
    private TSystemDictionaryItemMapper tSystemDictionaryItemMapper;
    @Override
    public List<TSystemDictionaryItem> getDictionaryAll() {
        return tSystemDictionaryItemMapper.getDictionaryAll();
    }

    @Override
    public List<TSystemDictionaryItem> getDictionItemByParentId(LogingLogGet logingLogGet) {
        return tSystemDictionaryItemMapper.getDictionItemByParentId(logingLogGet);
    }

    @Override
    public int getCount(LogingLogGet logingLogGet) {
        return tSystemDictionaryItemMapper.getCount(logingLogGet);
    }

    @Override
    public int updateByPrimaryKeySelective(TSystemDictionaryItem record) {
        return tSystemDictionaryItemMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int insertSelective(TSystemDictionaryItem record) {
        return tSystemDictionaryItemMapper.insertSelective(record);
    }
}
